package com.example.admin.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.admin.R;
import com.example.admin.SQLite.Complaint;
import com.example.admin.SQLite.YiJian;

public class AdminComplaintAdapter extends BaseQuickAdapter<YiJian, BaseViewHolder> {

    public AdminComplaintAdapter() {
        super(R.layout.item_admin_complaint);
    }

    @Override
    protected void convert(BaseViewHolder helper, YiJian str) {
        helper.setText(R.id.tv1, str.id+"");
        helper.setText(R.id.tv2, str.yijianContent);
        helper.setText(R.id.tv3, str.yijianTime);
        helper.setText(R.id.tv4, str.yijianState);
        helper.addOnClickListener(R.id.tv4);
    }

}